/**
 * 
 */
package org.vsg.stock.core.indicator.kline;

import java.io.Serializable;

/**
 * @author Bill vison
 *
 */
public class ZigIndicatorResultItem<T extends Serializable> implements Serializable {
	
	private int sequenceNo;
	
	private double value;
	
	private T assoRef;
	
	private Type type;
	

	public int getSequenceNo() {
		return sequenceNo;
	}


	public void setSequenceNo(int sequenceNo) {
		this.sequenceNo = sequenceNo;
	}



	public double getValue() {
		return value;
	}


	public void setValue(double value) {
		this.value = value;
	}


	public T getAssoRef() {
		return assoRef;
	}





	public void setAssoRef(T assoRef) {
		this.assoRef = assoRef;
	}


	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}



	@Override
	public String toString() {
		return "ZigIndicatorResultItem [assoRef=" + assoRef + ", sequenceNo="
				+ sequenceNo + ", type=" + type + ", value=" + value + "]";
	}



	public enum Type {
		CREST , TROUGH , UNKNOWN
	}
}
